/**
 * @date 4:22:11 PM
 * SchoolAPPServiceImpl.java
 * Administrator
 * TODO
 */
package com.qs.education.service.impl;
import org.springframework.stereotype.Service;

import com.qs.education.bean.api.ResponseBean;
import com.qs.education.bean.api.ResponseListBean;
import com.qs.education.bean.beans.EducationSchoolBean;
import com.qs.education.bean.entity.EducationSchool;
import com.qs.education.bean.service.BaseService;
import com.qs.education.service.ISchoolAPPService;
/**
 * @class SchoolAPPServiceImpl	
 * @author Warren
 * @description
 * @date Nov 7, 2018 
 */
@Service
public class SchoolAPPServiceImpl extends BaseService implements ISchoolAPPService{
	
	/**
	 * @author Warren
	 * @return ResponseListBean<EducationSchoolBean>
	 * @description 查询所有学校列表
	 * @date Nov 8, 2018
	 */
	@Override
	public ResponseListBean<EducationSchoolBean> getList() {
		ResponseListBean<EducationSchoolBean> responselistBean = apiCaller.getSchoolList();
		return responselistBean;
	}

	/**
	 * @author Warren
	 * @param educationSchool
	 * @return ResponseListBean<EducationSchoolBean>
	 * @description 根据省市区选择所有学校
	 * @date Nov 8, 2018
	 */
	@Override
	public ResponseListBean<EducationSchoolBean> getListByProvinceAndCityAndArea(EducationSchool educationSchool) {
		ResponseListBean<EducationSchoolBean> responselistBean = apiCaller.getSchoolListByProvinceAndCityAndArea(educationSchool);
		return responselistBean;
	}

	/**
	 * @author Warren
	 * @param id 学生id
	 * @param schoolId 学校id
	 * @return Map<String,Object>
	 * @description
	 * @date Nov 8, 2018
	 */
	@Override
	public ResponseBean selectSchool(Long id,Long schoolId) {
		ResponseBean responseBean = apiCaller.selectSchool(id, schoolId);
		return responseBean;
	}
	
}
